package link.cocoon.api.blog.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import javax.annotation.Resource;
import link.cocoon.api.blog.service.ArticleApiMapper;
import link.cocoon.blog.entity.Article;
import org.springframework.stereotype.Service;

@Service
public class ArticleApiService {

  @Resource
  private ArticleApiMapper articleApiMapper;

  public IPage<Article> page(Page<Article> page) {
    return articleApiMapper.selectPage(page);
  }

  public String getContentById(Long id){
    return articleApiMapper.selectContentById(id);
  }

}
